package com.example.demo.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;


@Data
public class Comment  {
    @TableId(value="id",type= IdType.AUTO)
    private Integer id;
    
    private String commenter;
    
    private String comment;
    
    private Integer tieziId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill= FieldFill.INSERT)
    private Date createTime;

    private Integer commentId;

    private Integer commenterId;
}




